package friot.model.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2023-11-24 16:18:30
 */
@Data
@TableName("user")
public class CloudUser implements Serializable {
    private static final long serialVersionUID = 411247113503588300L;
    /**
     * id主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 密码，通信加盐
     */
    private String salt;
    /**
     * 用户名
     */
    private String name;
    /**
     * 密码，md5加密
     */
    private String password;
    /**
     * 邮箱号
     */
    private String email;
    /**
     * 账号状态 0正常 1锁定
     */
    private Integer status;
    /**
     * 注册时间
     */
    private LocalDateTime createdTime;
}

